﻿using System.Windows.Data;
using System;
namespace SpiralClock
{
    public class IsReflectedTimeConverter: IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var time = (DateTime) value;
            int remainder = time.Hour%12;
            if(remainder<6) return false;
            return true;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
